/*
============================================================================
 Name        : BlockReadZXG.h
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : CBlockReadZXG declaration
============================================================================
*/

#ifndef BLOCKREADZXG_H
#define BLOCKREADZXG_H

// INCLUDES
#include <e32std.h>
#include <e32base.h>
#include "Block.h"

// CLASS DECLARATION

class CBlockReadZXG : public CBlock
{
public:
	~CBlockReadZXG();
	
	static CBlockReadZXG* NewL(CBaseBlock* bsBack);

	static CBlockReadZXG* NewLC(CBaseBlock* bsBack);

private:
	CBlockReadZXG(CBaseBlock* bsBack);

	void ConstructL();

public:

	void OnDraw(CFbsBitGc& g) const;

	void OnKeyEvent(const TInt& keyCode);

	void SizeChanged();

	void WriteData(TDes8& aBuf);

	TBool ReadData(const TDesC8& aData);

	TInt GetDataLength();

	TInt16 GetDataType();

	static TInt OnDelay(TAny* aAny);

private:
	HBufC* m_strText;
	CPeriodic* m_DelayTimer;
};

#endif // BLOCKREADZXG_H
